//
//  AddrSearchResultsViewController.h
//  XPhoto
//
//  Created by baboy on 2019/6/24.
//  Copyright © 2019 baboy. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreLocation/CoreLocation.h>
#import "BKPlace.h"
#import "BKTableViewController.h"

NS_ASSUME_NONNULL_BEGIN
@protocol AddrSearchDelegate;
@interface AddrSearchResultsViewController : BKTableViewController
@property(nonatomic, assign) id<AddrSearchDelegate> delegate;
@property(nonatomic, strong) NSString *keyword;

@property(nonatomic, strong) CLLocation *location;
@property(nonatomic, strong) NSMutableArray *places;
@property(nonatomic, assign) NSInteger page;
- (void)search;

@end


@protocol AddrSearchDelegate <NSObject>

- (void)addrSearchViewController:(id)vc didSelectPlace:(BKPlace*)place;
@end
NS_ASSUME_NONNULL_END
